<?php 
$sql =	"SELECT
			  c.page_id,
			  d.title,
			  d.description,
			  d.meta_key,
			  d.meta_description	
		  FROM
			  pages AS c,
			  page_description AS d
		  WHERE
		  
			  c.page_id = d.page_id
			  AND
			  d.lang_id = '".$_SESSION['lang_id']."'
			  AND
			  c.page_id = '".$sef_url."' 
			  AND c.published
		  ";
$result = query($sql);
$row = mysql_fetch_object($result);

if(!$row) redirect(HTML_BASE.$_SESSION['lang'].'/404');
head(sth($row->title),sth($row->meta_description));



?>
 
<section id="content" class="cf">
        
        <div id="i-do" class="gr1 left">
            <img src="<?=HTML_BASE	?>images/i-do.jpg">
        </div>
        
        <div id="slider" class="gr3 right">
            <h1><?=stripslashes($row->title)?></h1>
				 
				 <?=stripslashes($row->description)?>
        </div>
                
    </section>		
  
</section>
	
<?php

foot();
?>